package com.example.feign.controller;

import com.example.feign.entity.Skill;
import com.example.feign.feign.SysFeign;
import com.example.feign.util.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/sys")
public class SysFeignController {

    @Autowired
    SysFeign sysFeign;

    @PostMapping("/imageUpload")
    public Response imageUpload(@RequestParam(value = "file", required = false) MultipartFile file){
        return sysFeign.imageUpload(file);

    }
}

